﻿//-----------------------------------------------------------------------
// <copyright file="StatusLineViewModel.cs" company="AFS">
// Copyright (c) AFS. All rights reserved.
//
//    This file is part of Chatbox.
//
//    Chatbox is free software: you can redistribute it and/or modify
//    it under the terms of the GNU Lesser General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    any later version.
//
//    Chatbox is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//    GNU Lesser General Public License for more details.
//
//    You should have received a copy of the GNU Lesser General Public License
//    along with Chatbox. If not, see http://www.gnu.org/copyleft/lesser.html
// </copyright>
//----------------------------------------------------------------------- 

namespace ChatBox.UI.ViewModels
{
    using System;

    using Controls;

    /// <summary>
    /// View model for a statrus update item
    /// </summary>
    public class StatusLineViewModel
    {
        /// <summary>
        /// Gets or sets the state of the connection at this message
        /// </summary>
        public ConnectionState ConnectionState
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the message in the status update
        /// </summary>
        public string Message
        {
            get;
            set; 
        }

        /// <summary>
        /// Gets or sets the date and time of the status update
        /// </summary>
        public DateTime OperationTime
        {
            get;
            set;
        }

        /// <summary>
        /// Display for debug
        /// </summary>
        /// <returns>the value as a string</returns>
        public override string ToString()
        {
            return this.ConnectionState + " " + this.OperationTime + " " + this.Message;
        }
    }
}
